home *** CD-ROM | disk | FTP | other *** search
/ With Open Eyes - Images … Art Institute of Chicago / With Open Eyes - The Art Institute of Chicago.iso / pc / wmovies / isfile / card_3055.txt < prev    next >
Text File  |  1990-05-25  |  2KB  |  87 lines

  1. -- card: 3055 from stack: in
  2. -- bmap block id: 3273
  3. -- flags: 0000
  4. -- background id: 2661
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=69 top=68 right=252 bottom=434
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20.  
  21.  
  22. -- part 25 (button)
  23. -- low flags: 00
  24. -- high flags: A003
  25. -- rect: left=201 top=278 right=316 bottom=346
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: IsFile
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   ask "Name or PathName :"
  37.   if it ‚↠empty
  38.   then answer IsFile(it)
  39. end mouseUp
  40.  
  41.  
  42.  
  43. -- part contents for card part 1
  44. ----- text -----
  45.  
  46.                                                 IsFile 1.0
  47.  
  48.                                          ¬© Fr√©d√©ric RINALDI
  49.  
  50.  
  51. DESCRIPTION
  52. ------------
  53.   IsFile is a XFCN allowing to test the existence of a file on a volume.
  54.  
  55.  
  56. SYNTAX
  57. -------
  58.                                IsFile (<file name or pathName>)
  59.  
  60.  
  61. PARAMETERS
  62. ------------
  63.  
  64.    The  parameter can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
  65.    Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).
  66.  
  67.  
  68. USING
  69. -----
  70.    The XFCN returns "true" if the file exists, "false" if not.
  71.  
  72.    If an error occurs, it can return :
  73.  
  74.                  "Error : Volume not found"
  75.                  "Error : Bad Name"
  76.                  "Error : Directory not found"
  77.                  "Error : I/O Error"
  78.                  "Error : Unknown #xx"
  79.                  "Error : Missing parameter"
  80. ---------------------------------------------------------------------
  81.  
  82. This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.
  83. Any commercial use must be licensed and aknowledged by the author.
  84.  
  85.                                   ¬© F. Rinaldi - 1989,1990
  86.  
  87. AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111